package com.springboot.demo.mapper;

import com.cx.item.common.mapper.BaseMapper;
import com.springboot.demo.model.example.CustomerExample;
import com.springboot.demo.model.model.Customer;

import java.util.List;
import java.util.Map;

public interface CustomerMapper extends BaseMapper<Customer, CustomerExample> {

    /**
     * 查询有效token用户数量
     *
     * @return
     */
    int getCustomerTokenValidCount();

    /**
     * 获取用户token列表key:用户token,value customerId
     *
     * @return
     */
    List<Map<String, Object>> getCustomerTokenList();
}